package com.ebring.shareEducation.dao;

import com.ebring.shareEducation.bean.UserRole;

import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Created by Cola
 * Date  2018/8/20 18:25
 */
public interface UserRoleMapper extends Mapper<UserRole> {

    // 增加用户的角色关系
    Integer inserts(UserRole userRole);

    // 删除用户的角色关系
    Integer deletes(@Param("userId") String userId);

    // 查询用户的所有角色
    List<UserRole> selectById(@Param("userId") String userId);


}
